package com.lpf.hotelsystem.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class CommentVO {
    /**
     * 编号
     */
    private Integer commentId;
    /**
     * 内容
     */
    private String content;
    /**
     * 评论时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "pubDate",notes = "评论时间",dataType = "date",required = true)
    private Date pubDate;
    /**
     * 客房
     */
    private Integer roomInfoId;
    /**
     * 用户
     */
    private Integer userId;
    /**
     * 用户名
     */
    private String username;

    /**
     * 客房号
     */
    private String romNum;

    /**
     * 价格
     */
    private BigDecimal price;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPubDate() {
        return pubDate;
    }

    public void setPubDate(Date pubDate) {
        this.pubDate = pubDate;
    }

    public Integer getRoomInfoId() {
        return roomInfoId;
    }

    public void setRoomInfoId(Integer roomInfoId) {
        this.roomInfoId = roomInfoId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRomNum() {
        return romNum;
    }

    public void setRomNum(String romNum) {
        this.romNum = romNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
